from django.db import models
from utils.models import *


class test(models.Model):
    _meta = None
    objects = None
    name = models.CharField(verbose_name='姓名', max_length=64, null=True)
    stu = models.ForeignKey('stu', on_delete=models.CASCADE, null=True, verbose_name='测试数据')

    class Meta:
        db_table = 'weixing_test'
        verbose_name = '微信数据'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name


class stu(models.Model):
    objects = None
    name = models.CharField(verbose_name='班级', max_length=32, default='1')

    class Meta:
        db_table = 'stu_test'
        verbose_name = '测试数据'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
